<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.iot.iotCard.title,
  description: seoConfig.iot.iotCard.description,
  keywords: seoConfig.iot.iotCard.keywords
})

// 产品优势数据
const advantages = [
  {
    icon: 'lucide:network',
    title: '三网覆盖',
    description: '支持移动、联通、电信三大运营商网络，全国范围覆盖'
  },
  {
    icon: 'lucide:signal',
    title: '多网络制式',
    description: '支持4G/3G/2G网络，自动切换，保证连接稳定性'
  },
  {
    icon: 'lucide:hash',
    title: '专用号段',
    description: '采用专用号段和独立网元，与普通手机号隔离'
  },
  {
    icon: 'lucide:settings',
    title: '灵活管理',
    description: '统一管理平台，实时监控流量使用，灵活调整套餐'
  },
  {
    icon: 'lucide:shield-check',
    title: '安全可靠',
    description: '独立网元保障数据安全，专业级稳定性保证'
  },
  {
    icon: 'lucide:wallet',
    title: '按需计费',
    description: '多种流量套餐可选，按需购买，性价比高'
  }
]

// 行业应用场景数据
const scenarios = [
  {
    icon: 'lucide:car',
    title: '车联网',
    description: '车载导航、远程诊断、智能驾驶、车队管理、行车记录',
    color: 'from-blue-500 to-cyan-500'
  },
  {
    icon: 'lucide:video',
    title: '视频监控',
    description: '安防监控、远程视频、智能分析、云存储、实时预警',
    color: 'from-purple-500 to-pink-500'
  },
  {
    icon: 'lucide:factory',
    title: '工业物联',
    description: '设备监控、数据采集、远程控制、预测维护、生产管理',
    color: 'from-green-500 to-emerald-500'
  },
  {
    icon: 'lucide:store',
    title: '新零售',
    description: '智能货柜、POS机、自助终端、移动支付、库存管理',
    color: 'from-orange-500 to-red-500'
  },
  {
    icon: 'lucide:lightbulb',
    title: '智慧城市',
    description: '智能路灯、环境监测、智能停车、公共安全、城市管理',
    color: 'from-indigo-500 to-blue-500'
  },
  {
    icon: 'lucide:home',
    title: '智能家居',
    description: '智能门锁、家电控制、环境监测、安防报警、远程管理',
    color: 'from-yellow-500 to-orange-500'
  }
]
</script>

<template>
  <div class="min-h-screen">
    <!-- 顶部横幅 -->
    <ProductHero
      title="物联网卡"
      description="物联网卡是由中国三大运营商提供的4G/3G/2G卡。采用的是专用号段和独立网元来满足智能硬件和物联网行业对设备联网的管理需求及移动信息化应用需求。"
    />

    <!-- 产品优势 -->
    <section class="py-16 md:py-24 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-16">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            产品优势
          </h2>
          <p class="text-lg text-gray-600">
            专业稳定的物联网连接服务
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(advantage, index) in advantages"
            :key="index"
            class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group"
          >
            <div class="w-14 h-14 bg-gradient-to-br from-green-500 to-emerald-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">
              {{ advantage.title }}
            </h3>
            <p class="text-gray-600 leading-relaxed">
              {{ advantage.description }}
            </p>
          </div>
        </div>
      </div>
    </section>

    <!-- 行业应用场景 -->
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            行业应用场景
          </h2>
          <p class="text-lg text-gray-600">
            广泛应用于各类物联网场景
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(scenario, index) in scenarios"
            :key="index"
            class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden"
          >
            <!-- 悬停时的渐变背景 -->
            <div 
              class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity"
              :class="scenario.color"
            />
            
            <div class="relative">
              <div 
                class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br"
                :class="scenario.color"
              >
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">
                {{ scenario.title }}
              </h3>
              <p class="text-gray-600 leading-relaxed">
                {{ scenario.description }}
              </p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>

